package domain;

public class Task {
	public Task(Segment destination, Car car) {
		this.car = car;
		setDestination(destination);
	}
	
	private void setDestination(Segment destination) {
		this.destination = destination;
	}
	public Segment getDestination() {
		return destination;
	}

	public Car getCar() {
		return car;
	}

	private Segment destination;
	private final Car car;
}
